<?php
require_once("/home/bluecbhv/Jcuhelpers-WebTech/Common/Helpers/Constants.php");

/***********************************************
	This class would save the JSON data as a
	new JSON file on the server.
************************************************/
class NewJSONFileCreation {
	private $newJSONFile = NULL;
	
	/************************************************************/
	
	function __construct($jsonDataToBeSaved, $filePath) {
		$this->newJSONFile = fopen($filePath, 'w');
		fwrite($this->newJSONFile, JSON_HEADER.$jsonDataToBeSaved.JSON_FOOTER);
		fclose($this->newJSONFile);
	}
}
?>